<%--
  Created by IntelliJ IDEA.
  User: glls
  Date: 2022/4/7
  Time: 22:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<!-- 上传文件的表单  需要设置    enctype  属性  enctype="multipart/form-data"  -->
<form action="${pageContext.request.contextPath }/upload2" method="post" enctype="multipart/form-data" >
    用户名：<input type="text" name="userName"><br>
    上传文件<input type="file" name="file1"><br>
    <input type="submit" value="提交">
</form>
</body>
</html>
